﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HostelEmpAdd.aspx.cs" Inherits="UI.ModMini.HostelEmpAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>人员信息管理</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 125px;
        }
    </style>
</head>
<body onload="window.document.forms[0].txtEmpCode.focus();">
    <form id="form1" runat="server">
    <br />
    &nbsp;<br />
    &nbsp;<p style="text-align: center; font-size: large;">
        <strong>入住人员信息管理</strong></p>
    <br />
    <table style="width: 60%;" align="center">
        <tr>
            <td class="style1">
                员工编号
            </td>
            <td>
                <asp:TextBox ID="txtEmpCode" runat="server" CssClass="InputCss" Width="100px" AutoPostBack="True"
                    TabIndex="0" OnTextChanged="txtEmpCode_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rf0" ControlToValidate="txtEmpCode" runat="server"
                    ErrorMessage="必填项" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                姓名
            </td>
            <td>
                <asp:TextBox ID="txtEmpName" runat="server" CssClass="InputCss" Width="100px" TabIndex="1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                部门
            </td>
            <td>
                <asp:TextBox ID="txtDeptName" runat="server" CssClass="InputCss" Width="100px" TabIndex="2"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                宿舍
            </td>
            <td>
                <asp:DropDownList ID="ddlHostel" runat="server" CssClass="InputCss">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1">
                入住人数
            </td>
            <td>
                <asp:TextBox ID="txtInNum" runat="server" CssClass="InputCss" Width="100px" TabIndex="4">1</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                床位
            </td>
            <td>
                <asp:TextBox ID="txtBedCode" runat="server" CssClass="InputCss" Width="100px" TabIndex="5"></asp:TextBox>
            </td>
        </tr>
         <tr>
            <td class="style1">
                费用
            </td>
            <td>
                <asp:TextBox ID="txtFei" runat="server" CssClass="InputCss" Width="100px" TabIndex="6">0</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                入住时间
            </td>
            <td>
                <asp:TextBox ID="txtInTime" runat="server" CssClass="InputCss" Width="100px"  maxlength="10"  onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    TabIndex="7"> </asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                备注
            </td>
            <td>
                <asp:TextBox ID="txtMemo" runat="server" CssClass="InputCss" Width="260px" TabIndex="8"
                    Rows="5" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
    </table>
    <p style="text-align: center;">
        <asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click" TabIndex="9" />
        &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" OnClick="btnUpdate_Click"
            TabIndex="10" Style="height: 21px" />
        &nbsp;<asp:Button ID="btnTran" runat="server" Text="转房" OnClick="btnTran_Click" OnClientClick="return confirm('确定要操作吗?\n');"
            TabIndex="11" Style="height: 21px" />
        &nbsp;<asp:Button ID="btnNoUse" runat="server" Text="退房" OnClick="btnNoUse_Click"
            OnClientClick="return confirm('确定要操作吗?\n');" TabIndex="12" Style="height: 21px" />
        &nbsp;<asp:Button ID="btnReset" runat="server" Text="清空" OnClick="btnReset_Click"
            TabIndex="13" />
        &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"
            OnClientClick="return confirm('确定要删除吗?\n');" TabIndex="14" />
        &nbsp;<asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Text="关闭"
            TabIndex="15" CausesValidation="False" Style="height: 21px" />
    </p>
    </form>
</body>
</html>
